gtk: Rework pointer cursor selection
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 May 2017 23:45:18 +0000 (01:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 May 2017 14:25:59 +0000 (16:25 +0200)
commite892e20841dcb94d85a3d006f8898a29ab9a1105
treedcdf1e9efd871e520b2085fd7ebf23dfceb0ca6a
parentace686dba90ba734daf11d07c25612a8656953b7
gtk: Rework pointer cursor selection

Check the grab widget (both explicit and implicit) and check for a cursor
from the target widget up to this grab widget. If the target widget is
outside the grab widget, only the grab wigdet's cursor will be checked.

This also means that we have to ensure the cursor is updated on button
releases, as an implicit grab being deactivated must trigger a cursor
lookup from the target widget.
gtk/gtkmain.c
gtk/gtkwindow.c